var Person = require('./person.js').Person

function personTest() {
    var person = new Person('Tom', 21);
    var result = 'My name is Tom. I am 21 years old.';
    if (person.introduce() === result) {
        console.log('test passed');
    } else {
        console.log('test failed');
    }
}

personTest();